package com.lianwei.hospital.Service;

import com.lianwei.hospital.module.entity.DoctorInfo;
import com.lianwei.hospital.module.entity.ErInfo;
import com.lianwei.hospital.module.vo.DoctorVO;
import com.lianwei.hospital.module.vo.ErVO;
import com.lianwei.hospital.utils.PageUtil;

import java.util.List;

public interface ErInfoService {
    ErInfo selectByPrimaryKey(String id) throws Exception;
    boolean insert(ErInfo erInfo) throws Exception;
    List<ErInfo> selectAll() throws Exception;
    boolean deleteByPrimaryKey(String id) throws Exception;
    boolean updateByPrimaryKey(ErInfo erInfo) throws Exception;
    /**
     * 按条件分页查询
     * @param query
     * @return
     * @throws Exception
     */
    PageUtil<ErInfo> findPage(ErVO query) throws Exception;
}
